package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.AppointmentCallCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.AppointmentCallState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AppointmentCall对象", description = "")
public class AppointmentCall implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "乘客ID")
    private Long customerId;

    @ApiModelProperty(value = "出发地坐标")
    private GeoPoint origin;

    @ApiModelProperty(value = "出发地名称")
    private String originName;

    @ApiModelProperty(value = "起点详细路名")
    private String originPlaceName;

    @ApiModelProperty(value = "目的地坐标")
    private GeoPoint destination;

    @ApiModelProperty(value = "目的地名称")
    private String destinationName;

    @ApiModelProperty(value = "目的地详细路名")
    private String destinationPlaceName;

    @ApiModelProperty(value = "地区ID")
    private Long areaId;

    @ApiModelProperty(value = "后台运营ID")
    private Long cantonId;

    @ApiModelProperty(value = "状态0:waiting;1:pick;2:cancelled;3:covered")
    private AppointmentCallState state;

    @ApiModelProperty(value = "预约时间")
    private Date scheduleTime;

    @ApiModelProperty(value = "加价")
    private Integer priceMarkup;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "路程")
    private Integer distance;

    @ApiModelProperty(value = "接驾时间")
    private Date pickUpTime;

    @ApiModelProperty(value = "预约类型(0-短时预约,1-长时预约)")
    private AppointmentCallCategory category;

    @ApiModelProperty(value = "行程表ID")
    private Long refId;

    private Boolean needPrepay;


}
